import ASCII from "./ASCII";
// import {nowTtime} from "./common"

const {MD5} = require("crypto-js");

const key = "0c3714913e78903b1d4e7ec939cb2d39";
/**
 * @Description:ASCII加密后MD5加密，再转大写字符串
 * @author xxx
 * @createDate 2022/2/28
 * @param {Object} data
 * @return {string}
 */
function getASCII(data) {
  return MD5(ASCII.sort_ascii(data)+'&key='+key).toString().toLowerCase();
}
//ASCII加密
function setASCII(data) {
  return ASCII.sort_ascii(data)+'&key='+key;
}


//获取当前时间

 function nowTtime(){
	
	
	let time = parseInt(new Date().getTime() / 1000) + '';//获取10位时间戳
	
	return time;

	
}



export{
	getASCII,
	setASCII,
	nowTtime
}
